package com.bqjr.xms.config;

//@Configuration
public class RedisConfig {
	
	/*@Bean
	public JedisConnectionFactory connectionFactory() {
		JedisConnectionFactory connectionFactory = new JedisConnectionFactory();
		return connectionFactory;
	}

	@Bean
	public RedisTemplate<String, String> strRedisTemplate(JedisConnectionFactory connectionFactory) {
		StringRedisTemplate redisTemplate = new StringRedisTemplate();
		redisTemplate.setConnectionFactory(connectionFactory);
		return redisTemplate;
	}
	
	@Bean
	public RedisTemplate<String, Map<String, String>> hashRedisTemplate(JedisConnectionFactory connectionFactory) {
		RedisSerializer<String> stringSerializer = new StringRedisSerializer();
		RedisTemplate<String, Map<String, String>> redisTemplate = new RedisTemplate<String, Map<String, String>>();
		redisTemplate.setKeySerializer(stringSerializer);
		redisTemplate.setHashKeySerializer(stringSerializer);
		redisTemplate.setValueSerializer(stringSerializer);
		redisTemplate.setHashValueSerializer(stringSerializer);
		redisTemplate.setConnectionFactory(connectionFactory);
		return redisTemplate;
	}*/
	
}
